package com.ky.gp.app.controller;

import com.ky.common.param.TousuAdd;
import com.ky.common.vo.R;
import com.ky.gp.app.service.TousuFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * --- 天道酬勤 ---
 *
 * @author fhn
 * @date 2024/6/22
 * @desc -- 代码敲烂 月薪过万--
 */
@RestController
@RequestMapping("/api/study")
public class TousuController {
    @Autowired
    TousuFeign tousuFeign;
    @RequestMapping("/tousu/addTousu")
    public R addTousu(@RequestBody TousuAdd tousuAdd){

        return R.ok(tousuFeign.addTousu(tousuAdd));
    }
}
